<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt"  prefix="c"%>


<c:choose>
	<c:when test="${not empty errorMessage}">
		<script>
			alert("Error : ${errorMessage}");
		</script>
	</c:when>
	<c:when test="${not empty successMessage}">
		<script>
			alert("success : ${ successMessage}");
		</script>
	</c:when>
	<c:otherwise>
	</c:otherwise>
</c:choose>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Branch Form</title>
<script src="js/jquery-1.8.0.js"></script>
 <script src="js/jquery-ui-1.8.23.custom.js"></script>
<link rel="stylesheet" href="css/jquery-ui-1.8.23.custom.css"/>

 	
</head>

<body>
<form:form id="form1" name="form1" method="post" action="savebranch.htm" modelAttribute="branch">
  <h2 align="center">Branch Form</h2>
  <table  border="0" align="center" cellpadding="5" id="branchform">
    <tr>
      <td right">Branch Code:</td>
      <td ><label>
        <form:input type="text" name="code" id="code" path="code"/>
      </label></td>
    </tr>
    <tr>
      <td align="right">Name:</td>
      <td><label>
        <form:input type="text" name="name" id="name" path="name"/>
      </label></td>
    </tr>
    <tr>
      <td colspan="2" align="center"><label>
        <input type="submit" name="save" id="save" value="Save Branch" />
      </label></td>
    </tr>
  </table>
  <p align="center">&nbsp;</p>
</form:form>

<script src="js/college.js"></script>
</body>
</html>
